from django.urls import path

from apps.comment.views import CommentViewSet

urlpatterns = [
    path('', CommentViewSet.as_view({
        'get': 'list',
        'post': 'create'
    })),
    path('<int:pk>/', CommentViewSet.as_view({
        'get': 'retrieve',
        'post': 'update',
        'delete': 'destroy'
    }))
]